package com.sen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sen.model.entity.BmsPostTag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Set;

/**
 * <p>
 * 话题-标签 中间表 Mapper 接口
 * </p>
 *
 * @author ergou
 * @since 2021-04-12
 */
@Repository
@Mapper
public interface BmsPostTagMapper extends BaseMapper<BmsPostTag> {
    /**
     * 根据标签获取话题ID集合
     *
     * @param id
     * @return
     */
    Set<String> getTopicIdsByTagId(@Param("id") String id);
}
